package com.CommunityHub.kiana.po;

import java.util.Date;
import java.util.List;

public class User {
    private Integer id;
    private String username;
    private String password;
    private String role;
    private String sex;
    private Date birthData;
    private String phone;
    private String idCard;
    private String contactName;
    private String contactPhone;
    private String memberType;
    private List<Integer> serviceObjects; // JSON格式的服务对象ID列表
    private List<String> permissions; // JSON格式的权限配置
    private Integer status; // 1=启用,0=禁用

    public User(Integer id, String username, String password, String role, String sex, Date birthData, String phone, String idCard, String contactName, String contactPhone, String memberType, List<Integer> serviceObjects, List<String> permissions, Integer status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.role = role;
        this.sex = sex;
        this.birthData = birthData;
        this.phone = phone;
        this.idCard = idCard;
        this.contactName = contactName;
        this.contactPhone = contactPhone;
        this.memberType = memberType;
        this.serviceObjects = serviceObjects;
        this.permissions = permissions;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getBirthData() {
        return birthData;
    }

    public void setBirthData(Date birthData) {
        this.birthData = birthData;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getMemberType() {
        return memberType;
    }

    public void setMemberType(String memberType) {
        this.memberType = memberType;
    }

    public List<Integer> getServiceObjects() {
        return serviceObjects;
    }

    public void setServiceObjects(List<Integer> serviceObjects) {
        this.serviceObjects = serviceObjects;
    }

    public List<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<String> permissions) {
        this.permissions = permissions;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public User() {
    }
}

